/*
 * Created by BAC IT Deustche Bank
 * User: Sergio Vasquez
 * Date: 6/12/2009
 * Time: 2:56 PM
 * 
 * Description:
 * 
 */
using System;
using System.Collections.Generic;
using IScheduler.Core.Persistence;
using IScheduler.Core.Managers;

namespace IScheduler.Core.Business
{
	/// <summary>
	/// Description of HolidayBusiness.
	/// </summary>
	public class HolidayBusiness
	{
		HolidayData holidayData;
			
		/// <summary>
		/// Constructor
		/// </summary>
		public HolidayBusiness()
		{
			holidayData = new HolidayData();
		}
		
		/// <summary>
		/// Get holidays
		/// </summary>
		/// <returns></returns>
		public IList<Holiday> Holidays()
		{
			try
			{
				return holidayData.GetHolidayList();
			}
			catch(BusinessException e)
			{
				throw e;
			}
		}
	}
}
